/*
 * Copyright (c) Family. All Rights Reserved
 */

package com.driving.exam.entity;

import java.io.Serializable;

import org.apache.commons.lang3.StringUtils;
import org.apache.ibatis.type.Alias;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import lombok.Getter;
import lombok.Setter;

/**
 * 教练实体类
 *
 * @author SAGITTAR
 */
@Getter
@Setter
@Alias(value = "Coach")
@TableName(value = "tb_coach")
public class Coach extends Model<Coach> {

    private static final long serialVersionUID = 8736121698143716671L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "name")
    private String name = StringUtils.EMPTY;

    @TableField(value = "detail")
    private String detail = StringUtils.EMPTY;

    @TableField(value = "price")
    private String price = StringUtils.EMPTY;

    @TableField(value = "mobile")
    private String mobile = StringUtils.EMPTY;

    @TableField(value = "big_area")
    private String bigArea = StringUtils.EMPTY;

    @TableField(value = "small_area")
    private String smallArea = StringUtils.EMPTY;

    @TableField(value = "image_path")
    private String imagePath = StringUtils.EMPTY;

    @TableField(value = "school_id")
    private Integer schoolId;

    @TableField(value = "coach_url")
    private String coachUrl = StringUtils.EMPTY;

    @TableField(value = "school_age")
    private int schoolAge;

    @TableField(exist = false)
    private String schoolName;

    @Override
    public Serializable pkVal() {
        return id;
    }
}
